﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="WorkType.cs" company="AzureContrib (Open source library http://azurecontrib.codeplex.com)">
//   Microsoft Public License (Ms-PL)
// </copyright>
// <summary>
//   When to run the work; starting the app, running or stopping
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace AzureContrib.WindowsAzure.WorkServices
{
	/// <summary>
	/// When to run the work; starting the app, running or stopping
	/// </summary>
	public enum WorkType
	{
		/// <summary>
		/// <see cref="IWorkItem"/>s of this type run when the RoleEntryPoint starts up.
		/// </summary>
		OnStart,

		/// <summary>
		/// <see cref="IWorkItem"/>s of this type run while the RoleEntryPoint runs.
		/// </summary>
		Run,

		/// <summary>
		/// <see cref="IWorkItem"/>s of this type run when the RoleEntryPoint shuts down.
		/// </summary>
		OnStop
	}
}